package com.elong.businesstravel.protocol.login;

import org.apache.http.Header;
import org.json.JSONObject;

import android.text.style.ReplacementSpan;

import com.elong.businesstravel.entitys.MemberLogin;
import com.elong.businesstravel.protocol.baseresponse.BaseELongJsonHttpResponse;

public class MemberCheckLoginResponse extends BaseELongJsonHttpResponse {

	public MemberLogin memberLogin = new MemberLogin();
	
	@Override
	public void onSuccess(int statusCode, Header[] headers,
			JSONObject mainJsonObject) throws Throwable {
		JSONObject responseJsonObject = mainJsonObject.optJSONObject("response");
		memberLogin.uid = responseJsonObject.optString("uid", "");
		memberLogin.msg = responseJsonObject.optString("msg","");
		memberLogin.status = responseJsonObject.optString("status","");
		memberLogin.newuser = responseJsonObject.optString("newuser","");
		memberLogin.uphone = responseJsonObject.optString("uphone", "");
		memberLogin.nickname = responseJsonObject.optString("nickname", "");
	}

}
